#ifndef APPMAINWINDOW_H
#define APPMAINWINDOW_H

#include <QMainWindow>
#include <QSystemTrayIcon>
#include <QMenu>
namespace Ui {
    class MainWindow;
}

class CRunCommand;

class MainWindow : public QMainWindow
{
    Q_OBJECT


public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();


protected:
    virtual void closeEvent ( QCloseEvent * event );
    virtual void dragEnterEvent(QDragEnterEvent *event);
    virtual void dropEvent(QDropEvent *event);



private slots:
    void onIsoFileButtonClicked();
    void onMountDirButtonClicked();
    void checkOkButton();
    void onOkButtonPushed();
    void onUNmount();
    void onSysTraiActivated( QSystemTrayIcon::ActivationReason reason );
    void quitApplication();
    void populateMountLBrowser();

    void onThunarClicked();
    void onVlcClicked();

private:
    Ui::MainWindow *ui;
    QSystemTrayIcon *mpSysIcon;
    QMenu *mpIconMenu;
    CRunCommand *m_pRunCommand;
};

#endif // APPMAINWINDOW_H
